package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitivePageReqDto;
import com.heima.model.wemedia.pojos.WmSensitive;


public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 分页查询敏感词
     * @param dto
     * @return
     */
    public ResponseResult SensitiveList(SensitivePageReqDto dto);

    /**
     * 通过id删除敏感词
     * @param id
     * @return
     */
    public ResponseResult SensitiveDel(Integer id);

    /**
     * 新建敏感词--保存敏感词
     * @param wmSensitive
     * @return
     */
    public ResponseResult SensitiveSave(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     * @param wmSensitive
     * @return
     */
    public ResponseResult SensitiveUpdate(WmSensitive wmSensitive);
}
